The useCollection hook retrieves information about a specific collection address in your Marketplace from Builder. The returned data includes details such as the chainId, address, symbol, and more.
Copy
Ask AI
import { useCollection } from "@0xsequence/marketplace-sdk/react";## Into your React component:const { data: collectionData } = useCollection({ chainId: 137, collectionAddress: "0x0e5566a108e617baedbebb44e3fcc7bf03e3a839", query: { enabled: true, },});console.log(collectionData);